import request from '@/utils/request'

export function homePageImage(data) { //首页-轮播图
    return request({
        method: 'post',
        url: '/home/pageImage',
        data
    })
}

export function tbSysJournalismQuery(data) { //首页-新闻列表
    return request({
        method: 'get',
        url: '/tbSysJournalism/query',
        params: data
    })
}

export function homeQueryVideotex(data) { //首页-课程列表
    return request({
        method: 'get',
        url: '/home/queryVideotex',
        params: data
    })
}

export function tbCourseResourceQuery(data) { //首页-课程资源
    return request({
        method: 'get',
        url: '/tbCourseResource/query',
        params: data
    })
}

export function statHotCourseStat(data) { //首页-学习课程数排名
    return request({
        method: 'get',
        url: '/stat/hotCourseStat',
        params: data
    })
}

export function statLearningStarStat(data) { //首页-学习课程数排名
    return request({
        method: 'get',
        url: '/stat/learningStarStat',
        params: data
    })
}

export function tbSpecialQuery(data) { //首页-课程专题
    return request({
        method: 'get',
        url: '/tbSpecial/query',
        params: data
    })
}
